<?php
defined('BASEPATH') OR exit('No direct script access allowed');

$config['lang'] = [
	'action_success' => '操作成功',
	'action_error'   => '操作失败',
	'data_illegal'   => '数据非法',
	'method_illegal' => '参数非法'
];

// 不需要验证的 id
$config['allow_id'] = [1];
// 不需要验证的URL
$config['allow_url'] = [
	'main/index',    // 主页
	'main/right',    // 后台首页
	'user/logout',   // 安全退出
	'user/repass',   // 修改密码
	'user/login',    // 登录
	'user/captcha',  // 验证码
];

$config['tree'] = [
	1 => [
		'is_menu' => 1,
		'name' => '内容管理',
		'chileren' => [
			2 => [
				'is_menu' => 1,
				'name' => '内容分类',
				'url' => 'category/index',
			],
			3 => [
				'is_menu' => 1,
				'name' => '添加分类',
				'url' => 'category/add',
			],
			4 => [
				'name' => '编辑分类',
				'url' => 'category/edit',
			],
			5 => [
				'name' => '删除分类',
				'url' => 'category/delete',
			],
			6 => [
				'is_menu' => 1,
				'name' => '内容列表',
				'url' => 'content/index',
			],
			7 => [
				'is_menu' => 1,
				'name' => '添加内容',
				'url' => 'content/add',
			],
			8 => [
				'name' => '编辑内容',
				'url' => 'content/edit',
			],
			9 => [
				'name' => '删除内容',
				'url' => 'content/delete',
			]
		]
	]
];